package com.egoonet.dao;

import com.egoonet.domain.Department;
import com.egoonet.domain.Employee;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 *
 * Created by wchi on 2017/4/22.
 */
public interface EmployeeRepository extends JpaRepository<Employee,Long>{
    public List<Employee> findByDepartment(Department department);
}
